import axios from './index.js'
// 登录
export const login = (data) => axios.post('/login', data);
// 获取用户资源列表
export const getUserResources = () => axios.get('/resources');


// 获取书籍信息
export const getBookInfo = (bookId) => axios.get('/data'+bookId+'.json');

// 获取章节列表
export const getChapters = (bookId) => axios.get('/chapters');

// 获取章节内容
export const getChapterContent = (chapterId) => axios.get('/data'+chapterId);